﻿<%@ Page Language="C#" MasterPageFile="~/Admin/SanPham/MasterPageSanPham.master" ValidateRequest="false" AutoEventWireup="true" CodeFile="ChiTietSanPham.aspx.cs" Inherits="Admin_SanPham_ChiTietSanPham" Title="Chi tiết sản phẩm" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
    <div style="padding-right: 12px; padding-left: 12px; padding-bottom: 12px; padding-top: 12px">
        <div>
            <div class="title">
                Chi tiết sản phẩm
            </div>
            <div>
                <table bgcolor="#cccccc" border="0" cellpadding="3" cellspacing="1" width="100%">
                    <tr>
                        <td style="width: 30%">
                            Mã sản phẩm</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_MaSP" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 30%">
                            Tên sản phẩm</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_TenSP" runat="server"></asp:Literal>
                        </td>
                    </tr>
                      <tr>
                        <td style="width: 30%">
                           Danh mục</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_DanhMuc" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 30%">
                            Doanh nghiệp</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_DoanhNghiep" runat="server"></asp:Literal>
                        </td>
                    </tr>
                   
                    <tr>
                        <td style="width: 30%; height: 19px;">
                            Giá gốc</td>
                        <td style="width: 70%; height: 19px;">
                            <asp:Literal ID="lit_GiaGoc" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 30%">
                            Giá deal</td>
                        <td style="width: 70%">
                             <asp:Literal ID="lit_GiaBan" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 30%">
                            Ngày bắt đầu</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_NgayBatDau" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 30%">
                            Ngày hết hạn</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_NgayHetHan" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 30%">
                            Số lượng đã bán</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_SoLuongBan" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 30%">
                            Số lượng tối đa</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_SoLuongToiDa" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    
                       <tr>
                        <td style="width: 30%">
                          Hình ảnh</td>
                        <td style="width: 70%; text-align: center;">
                         <asp:Image ID="img_no" runat="server" Width="100" Height="100" ImageUrl="~/Photos/Thumb/no_images.jpg" />
                            <asp:Repeater ID="Repeater1" runat="server"  OnItemDataBound="Repeater1_ItemDataBound" OnItemCommand="Repeater1_ItemCommand">
                                 <HeaderTemplate>
                                     <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
                                        <tr>
                                 </HeaderTemplate>
                                    
                                  <ItemTemplate>
                                    <td align=center>
                                       
                                           <asp:Image ID="img_HinhAnh" runat="server" />
                                    </td>
                                  
                                  </ItemTemplate> 
                                
                                   <FooterTemplate>
                                        </tr>
                                        </table>
                                   </FooterTemplate>
                            </asp:Repeater>
                            <cc1:PagerV2_8 ID="pagerHinh" runat="server" OnCommand="pagerHinh_Command" />
                        </td>
                    </tr>
                      <tr>
                        <td style="width: 30%">
                            Mô tả</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_MoTa" runat="server"></asp:Literal>
                        </td>
                    </tr>
                      <tr>
                        <td style="width: 30%">
                           Qui định sử dụng</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_QuiDinhSuDung" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    
                     <tr>
                        <td style="width: 30%">
                           Địa điểm sử dụng:</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_DiaDiemSuDung" runat="server"></asp:Literal>
                        </td>
                    </tr>
                     <tr>
                        <td style="width: 30%">
                            Bản đồ:</td>
                        <td style="width: 70%">
                          <center>
                            <asp:Image ID="img_BanDo" runat="server" Height="100px" Width="100px" />
                            </center>
                            </td>
                    </tr>
                      <tr>
                        <td style="width: 30%">
                           Chiết Khấu</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_ChietKhau" runat="server"></asp:Literal>
                        </td>
                    </tr>
                      <tr>
                        <td style="width: 30%">
                            Tình trạng</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_TinhTrang" runat="server"></asp:Literal>
                        </td>
                    </tr>
                    
                      <tr>
                        <td style="width: 30%">
                           Nhân viên</td>
                        <td style="width: 70%">
                            <asp:Literal ID="lit_NhanVien" runat="server"></asp:Literal>
                        </td>
                    </tr>
                </table>
            </div>
           <div class="title">
                Danh sách bình luận
            </div>
               <div class="addnewrow" style="display:table-cell; width:20%;float:right;"> 
                <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click">Xóa</asp:LinkButton>
                    
            </div>   
            <asp:Repeater id="Repeater2" runat="server" OnItemDataBound="Repeater2_ItemDataBound" OnItemCommand="Repeater2_ItemCommand">
            <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" border="0" bgcolor="#cccccc">
                <thead >
                    <tr class="listtableheader">
                        <th align ="left">Mã Bình Luận</th>
                        <th align ="left">Tên Khách Hàng</th>
                              <th align ="left">Ngày Gửi</th>
                       
                        <th align ="left">
                            <input id="cb_All" type="checkbox" onclick="CheckAll(1);"  />
                            <a href="javascript:CheckAll(2)">Chọn hết</a>
                        </th>
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
              <tr>
                <td><a href='ChiTietBinhLuan.aspx?id=<%#Eval("MaBL")%>' ><%#Eval("MaBL") %></a></td>
                <td>
                    <asp:Literal ID="lit_tenKH" runat="server"></asp:Literal>
                </td>
               
                 <td><%#Eval("NgayGui") %></td>
           
                <td>
                    <asp:CheckBox ID="cb_Xoa" runat="server"  />
                    <asp:HiddenField ID="hf_id" Value='<%#Eval("MaBL") %>' runat="server"  />
                </td>
              </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>   
            </FooterTemplate>
        </asp:Repeater>
        </div>
        <cc1:PagerV2_8 ID="pager" runat="server" OnCommand="pager_Command" />
    </div>
</asp:Content>

